package com.cityeye.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Issuetype entity. @author MyEclipse Persistence Tools
 */

public class Issuetype extends com.cityeye.util.IEntity implements
		java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private Integer valid=1;
	private Set subissuetypes = new HashSet(0);

	// Constructors

	/** default constructor */
	public Issuetype() {
	}

	/** minimal constructor */
	public Issuetype(Integer id, String name, Integer valid) {
		this.id = id;
		this.name = name;
		this.valid = valid;
	}

	/** full constructor */
	public Issuetype(Integer id, String name, Integer valid, Set subissuetypes) {
		this.id = id;
		this.name = name;
		this.valid = valid;
		this.subissuetypes = subissuetypes;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getValid() {
		return this.valid;
	}

	public void setValid(Integer valid) {
		this.valid = valid;
	}

	public Set getSubissuetypes() {
		return this.subissuetypes;
	}

	public void setSubissuetypes(Set subissuetypes) {
		this.subissuetypes = subissuetypes;
	}
	
	public String toString() {
		return this.getName();
	}

}